package com.cai.xiaobai.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 选项内容表
 * </p>
 *
 * @author author
 * @since 2024-05-13
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("option_info")
@Tag(name="OptionInfo对象", description="选项内容表")
public class OptionInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @Schema(description = "问卷调查表id")
    private Long fromId;

    @Schema(description = "问题id")
    private Long questionId;

    @Schema(description = "选项名称")
    private String optionName;

    @Schema(description = "选项排序非空")
    private Integer optionSort;

    @TableField
    @Schema(description = "是否删除")
    private Integer isDelete;


}
